package com.wander.rep.listoptions;

import java.util.ArrayList;
import java.util.HashMap;
import java.util.List;
import java.util.Map;

/**
 * Helper class for providing sample content for user interfaces created by
 * Android template wizards.
 * <p>
 * TODO: Replace all uses of this class before publishing your app.
 */
public class ListOptions {

	/**
	 * An array of sample (dummy) items.
	 */
	public static List<ListItems> ITEMS = new ArrayList<ListItems>();

	/**
	 * A map of sample (dummy) items, by ID.
	 */
	public static Map<String, ListItems> ITEM_MAP = new HashMap<String, ListItems>();

	static {
		addItem(new ListItems("1", "Dashboard"));
		addItem(new ListItems("2", "Activity Level"));
		addItem(new ListItems("3", "Temperature History"));
		addItem(new ListItems("4", "Movement Patterns"));
		addItem(new ListItems("5", "Feedback"));
	}

	private static void addItem(ListItems item) {
		ITEMS.add(item);
		ITEM_MAP.put(item.id, item);
	}

	/**
	 * A dummy item representing a piece of content.
	 */
	public static class ListItems {
		public String id;
		public String content;

		public ListItems(String id, String content) {
			this.id = id;
			this.content = content;
		}

		@Override
		public String toString() {
			return content;
		}
	}
}
